{extend name="public:base" /}

{block name="css"}
<link rel="stylesheet" href="__ADMIN__/css/adminPage.css"  media="all">
{/block}

{block name="content"}

<div class="screening">
    <form class="layui-form" action='{:url("User/index")}' method="get">

        <div class="layui-form-item" style="clear: none;float: left">
            <label class="layui-form-label">真实姓名</label>
            <div class="layui-input-inline">
                <input type="text" name="nickname"  autocomplete="off" class="layui-input" value="{$Arr['nickname']? $Arr['nickname'] : ''}">
            </div>
        </div>
        <div class="layui-form-item" style="clear: none;float: left">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline">
                <input type="text" name="phone"  autocomplete="off" class="layui-input" value="{$Arr['phone']? $Arr['phone'] : ''}">
            </div>
        </div>
        <div class="layui-form-item" style="clear: none;float: left">
            <label class="layui-form-label">等级</label>
            <div class="layui-input-inline">
                <input type="text" name="agent"  autocomplete="off" class="layui-input" value="{$Arr['agent']? $Arr['agent'] : ''}">
            </div>
        </div>

        <div class="layui-form-item" style="clear: none;float: left">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">确定</button>
            </div>
        </div>
        <div class="clear"></div>
    </form>
</div>

<table class="layui-table">
    <colgroup>
        <col width="60">
        <col width="150">
        <col width="90">
        <col width="150">
        <col width="150">
        <col width="100">
        <col width="100">
    </colgroup>
    <thead>
    <tr>
        <th>ID</th>
        <th>代理商信息</th>
        <th>等级</th>
        <th>余额</th>
        <th>邀请关系</th>
        <th>状态</th>
    </tr>
    </thead>
    <tbody>
    {foreach $list as $v}
    <tr>
        <td>{$v->id}</td>
        <td>{$v->account}</br>{$v->phone}</br>{$v->login_time|date="Y-m-d H:i",###}</td>
        <td>{$v->agent}</td>
        <td>
            用户余额：{$v->money}</br>
            提现中：{$v->cash}</br>
            货款余额：{$v->huomoney}</td>
        <td>邀请人：{$v->upname?$v->upname:'无'}</br>
            {$v->upphone?$v->upphone.'</br>':''}
            邀请下级：{$v->straight_num}人</br>
            邀请团队：{$v->all_num}人</br>
        </td>
        <td>
            <div class="layui-table-cell laytable-cell-1-10">
                <a class="layui-btn layui-btn-mini" href='{:url("User/details",array("id"=>$v->id))}' lay-event="edit">详情</a>
            </div>
            
        </td>
    </tr>
    {/foreach}
    </tbody>

</table>
<div style="text-align: center">
    {$list->render()}
    <p>共 <span style="color: #FF5722">{$pagetotal}</span> 条</p>
</div>
{/block}


{block name="javascript"}
<script src="__ADMIN__/js/fromCommon.js" charset="utf-8"></script>

<script type="text/javascript">



    layui.use('form', function(){
        var form = layui.form;

    });

</script>

{/block}